export const session = {
    set(key: any, value: any) {
        window.sessionStorage.setItem(key, value);
    },
    get(key: any) {
        return window.sessionStorage.getItem(key);
    },
    remove(key: any) {
        window.sessionStorage.removeItem(key);
    },
    clear() {
        window.sessionStorage.clear(); //清除所有
    }
}
export const local = {
    set(key, value) {
        window.localStorage.setItem(key, value);
    },
    get(key) {
        return window.localStorage.getItem(key);
    },
    remove(key) {
        window.localStorage.removeItem(key);
    },
    clear() {
        window.localStorage.clear(); //清除所有
    }
}